<extend name="extends/extend" />
<block name="script">
    <!-- sweetalert js -->
    <script src="__admin__/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        $(document).ready(function () {
            swal({
                title: '{$result["temp"]?"模板缓存清除成功！":"模板缓存清除失败！"}\n\r{$result["cache"]?"缓存清除成功!":"缓存清除失败！"}',
                icon: '{$result["temp"] AND $result["cache"]?"success":"error"}',
            }).then(function () {
                $(parent.document).find('a.J_menuTab.active i').trigger('click');
            });
        });
    </script>
</block>